package com.zzq.base.awesome.entity;

import java.util.regex.Pattern;

/**
 * @author 赵自强
 * */
public interface CommonData {
	/**
	 * 时间格式
	 */
	String STANDARDDATE= "yyyy-MM-dd HH:mm:ss";
	String DATEYMD = "yyyy-MM-dd";
	String DATEHMS = "HH:mm:ss";
	String DATEWITHOUTGANG = "yyyyMMddHHmm";
	String DATEOFFILE = "yyyyMMdd";
	/**Http头字段*/
	String AJAXCONTENT = "XMLHttpRequest";
	String TOKENTAG = "Authorization";
	String AJAXHEADER = "X-Requested-With";
	String ERRORTOKENTAG = "ERRORTOKENTAG";
	/**JWT*/
	String JWTSECRET = "JWTSECRET";
	String JWTISSER = "JWTISSER";
	String JWTSUBJECT = "webclient";
	String JWTPREFIX = "Bearer ";
	String USERNAME = "userName";
	String REFRESHTIME = "refreshTime";
	String ROLEID= "roleId";
	/**
	 * myBatis 代码生成器
	 */
	String CODEAUTH = "赵自强";
	String SQLURL = "jdbc:mysql://localhost:3306/video_study?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8";
	String SQLDRIVER = "com.mysql.cj.jdbc.Driver";
	String SQLUSERNAME = "root";
	String SQLPWD = "666888aaa";
	String ROOTPACKAGE = "com.zzq.base.awesome";
	String APILOCATION = ROOTPACKAGE + ".api";
	String SUPERENTITYCLASS = ROOTPACKAGE + ".entity.BaseEntity";
	String SUPERCONTROLLERCLASS = ROOTPACKAGE + ".controller.BaseController";

	String MOBILREGX = "^1[3456789]\\d{9}$";
	String EMAILREGX = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})$";

    long EXPORESTIME = 60 * 60 * 1000;
    // 返回正确
    int SUCCESS = 10000;
    // 未定义的错误返回类型
    int FAIL = 20000;
    // 数据库操作失误
    int DATABASEERROR = 30000;
    // 空的请求参数
    int EMPTYPARAMERROR = 40000;
    // 请求参数格式不正确
    int PARAMSCHEMERROR = 50000;
	// 该用户不存在
	int USERNOTEXIST = 60000;
	// 保存文件失败
	int SAVEFILEERROR = 70000;

	String WINDOWSFILEPATH = "C:/data/";
	String LINUXFILEPATH = "/file/";
	String LINUXFILEPATHSPLITE = "/";
	String IMGSUFFIX = ".png";
}
